﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace DAL
{
    class CsvUtil
    {
        private static Regex reg = new Regex(@"\n");

        public static string Format(string str)
        {
            if (string.IsNullOrEmpty(str))
            {
                str = "";
            }
            str = reg.Replace(str, "");
            str = str.Replace("\"", "").Replace("\"", "");
            str = str.Trim();
            return "\"" + str + "\",";
        }
    }
}
